﻿

using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YYSite.Common
{


    public   class AbstractDenormalizer
    {
        private readonly string connectionString="server=.;uid=sa;pwd=123;database=qidian;";
        
        //System.Configuration.ConfigurationManager.ConnectionString[""].ConnectionString;
          //public string connectionString { get; set; }

        //public AbstractDenormalizer(string connectionString)
        //{
        //    this.connectionString = connectionString;
        //}
        public SqlConnection GetSqlConnection()
        {
            SqlConnection connection = new SqlConnection(connectionString);
            connection.Open();
            return connection;
        }
    }

   
}
